package com.ioc.service.impl;


import com.ioc.annotation.ExtAutowired;
import com.ioc.annotation.ExtService;
import com.ioc.bean.User;
import com.ioc.dao.UserDao;
import com.ioc.service.OrderService;
import com.ioc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author xinwang
 * @date 2020/2/22 18:13
 **/
@ExtService
public class UserServiceImpl implements UserService {

    @ExtAutowired
    private OrderService orderServiceImpl;

    public UserServiceImpl(){
        System.out.println("动态代理创建");
    }

    @Override
    public void add() {
        System.out.println("UserService 执行");
        orderServiceImpl.addOrder();
    }



}
